﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Easyleave.Logic.Domain;
using Easyleave.Logic.Membership;
using System.ServiceModel;
using Easyleave.Logic.Validation;

namespace Easyleave.Service
{
    [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single)]
    public class MembershipService : IMembershipService
    {
        #region IMemebershipService Members

        public UserDto Authenticate(string username, string password)
        {
            return MembershipFactory.GetMembership().Authenticate(username, password);
        }


        public IList<string> GetLeaveTypes(Guid? userId)
        {
            return ValidationFactory.GetValidation().GetLeaveTypes(userId);
        }

        #endregion
    }
}
